<template>
  <div class="container">
    <Category title="游戏">
      <template slot-scope="gamesData">
        <!-- {{ gamesData }} -->
        <ul>
          <li v-for="(value, index) in gamesData.games" :key="index">
            {{ value }}
          </li>
        </ul>
      </template>
    </Category>
    <Category title="游戏">
      <template slot-scope="gamesData">
        <!-- {{ gamesData }} -->
        <ol>
          <li v-for="(value, index) in gamesData.games" :key="index">
            {{ value }}
          </li>
        </ol>
        <h4>{{ gamesData.msg }}</h4>
      </template>
    </Category>
    <Category title="游戏">
      <template slot-scope="{ games }">
        <div v-for="(value, index) in games" :key="index">
          {{ value }}
        </div>
      </template>
    </Category>
  </div>
</template>

<script>
import Category from "./components/Category.vue";
export default {
  name: "App",
  components: {
    Category,
  },
};
</script>

<style>
.container,
.foot {
  display: flex;
  justify-content: space-around;
}

img {
  width: 100%;
}

video {
  width: 100%;
}

h4 {
  text-align: center;
}
</style>